asOption

fun <E, A> Either<E, A>.asOption(): Option<A>(source)

Turns your Either into an Option.